/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spiele.RPS.xample.rockpaperscissor;

import spiele.RPS.Rps;
import spiele.RPS.base.RpsBase;

/**
 *
 * @author martin
 */
public class Win extends RpsBase<Hand,Hand>{
  private final Hand _strong,
                     _weak;
  private Win(final Hand strong, final Hand weak){
    _strong=strong;
    _weak=weak;
  }
  
  public final Rps<Hand,Hand> [] condition = new Rps[]{
    new Win(Hand.paper,Hand.rock),
    new Win(Hand.rock,Hand.scissor),
    new Win(Hand.scissor,Hand.paper)
  };
  
  @Override
  public Hand strong() {
    return _strong;
  }

  @Override
  public Hand weak() {
    return _weak;
  }

  @Override
  public Hand modif() {
    return _strong;
  }
  
}
